package com.example.blog.mapper;

import org.springframework.util.DigestUtils;

import java.util.Arrays;
import java.util.UUID;

public class MD5Utils {
    public static void main(String[] args) {
        String s1 = UUID.randomUUID().toString();
        String s2 = UUID.randomUUID().toString();
        String s3 = UUID.randomUUID().toString();
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
    }
    public static void main1(String[] args) {
        //对"123456"进行md5加密
        String key = DigestUtils.md5DigestAsHex("123456".getBytes());
        //输出加密后的字符串
        System.out.println(key);
    }
}
